# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-screensaver-pp
pkgver=0.0.4
pkgrel=2
pkgdesc='Optional PP screensaver resource for deepin screensaver'
arch=('any')
url="https://github.com/zccrs/screensaver-pp"
license=('GPL3')
depends=('deepin-screensaver')
makedepends=('qt5-tools' 'python')
groups=('deepin-extra')
source=("$pkgname-$pkgver.tar.gz::https://github.com/zccrs/screensaver-pp/archive/$pkgver.tar.gz")
sha512sums=('0357204f90aac85a2b18c31cfb7a1a0ed87f5d27c39f1cb8018be63baeefd85f8108906f604c4e134a6588ba63122236fc5d2c27f89ef7a6f580e57ad1f0382a')

build(){
  cd screensaver-pp-$pkgver
  qmake-qt5 PREFIX=/usr
  make
}

package() {
  cd screensaver-pp-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
